STAGE.newMessage(400,75,"But I have puppies and lots of sweet chocolates at my house...are you sure you don\'t want to visit?",15,30,160,"Sound_Xave6","XAVE");
rightAnswer = true;
}
else if(timer == 320)
{
convState = 6;
timer = 0;
answerBox.ready = true;
}
}
else if(bossNum == 2)
{
if(timer == 2)
{
STAGE.newMessage(400,75,"Well well well, thats the right answer!",15,10,120,"Sound_TomRight","TOM");
STAGE.newMessage(400,75,"If I ask you to not tell your parents about me, should you tell them anyway?",15,30,160,"Sound_Niall4","NIALL");
rightAnswer = true;
}
else if(timer == 320)
{
convState = 6;
timer = 0;
answerBox.ready = true;
}
}
}
else if(convState == 6)
{
timer = 0;
testSwitch = false;
}
else if(convState == 7)
{
if(userAnswer != rightAnswer and testSwitch == false)
{
timer = 0;
convState = 10;
}
timer++;
if(bossNum == 1)
{
if(timer == 10)
{
STAGE.newMessage(400,75,"Blast it, I\'ve been foiled again by you clever little Wiggies! I\'ve got to go now! Mwahahaha",15,30,240,"Sound_XaveBeat","XAVE");
bossScale = bossSprite._xscale;
}
else if(timer > 220 and timer < 340)
{
bossSprite._xscale = - bossScale;
bossSprite._x += 4;
}
else if(timer == 340)
{
if(shortGame == false)
{
this["LEVEL" + levelID + "COMPLETE"] = true;
saveAllData();
levelID++;
fade("LOADER",10);
}
else
{
fade("SELECT",10);
}
}
}
else if(bossNum == 2)
{
if(timer == 10)
{
STAGE.newMessage(400,75,"Well, I have to go now, well done on getting the questions right!",15,30,240,"Sound_TomBeat","TOM");
bossScale = bossSprite._xscale;
}
else if(timer > 220 and timer < 340)
{
bossSprite._xscale = - bossScale;
bossSprite._x += 4;
}
else if(timer == 340)
{
if(shortGame == false)
{
this["LEVEL" + levelID + "COMPLETE"] = true;
saveAllData();
levelID++;
fade("LOADER",10);
}
else
{
fade("SELECT",10);
}
}
}
else if(bossNum == 3)
{
if(timer == 10)
{
STAGE.newMessage(400,75,"Well, it looks like I should go then, I\'m no match for you!",15,30,240,"Sound_NiallBeat","NIALL");
bossScale = bossSprite._xscale;
}
else if(timer > 220 and timer < 340)
{
bossSprite._xscale = - bossScale;
bossSprite._x += 4;
}
else if(timer == 340)
{
if(shortGame == false)
{
this["LEVEL" + levelID + "COMPLETE"] = true;
saveAllData();
levelID++;
fade("WIN",10);
}
else
{
fade("SELECT",10);
}
}
}
}
else if(convState == 10)
{
timer++;
if(bossNum == 1)
{
if(timer == 10)
{
STAGE.newMessage(400,75,"That was the wrong answer, now you must start again!",15,30,240,"Sound_XaveWrong","XAVE");
}
else if(timer == 160)
{
if(shortGame == false)
{
fade("LOADER",10);
}
else
{
fade("SELECT",10);
}
}
}
else if(bossNum == 2)
{
if(timer == 10)
{
STAGE.newMessage(400,75,"Wrong answer, I\'m afraid! Now you have to start all over again!",15,30,240,"Sound_TomWrong","TOM");
}
else if(timer == 160)
{
if(shortGame == false)
{
fade("LOADER",10);
}
else
{
fade("SELECT",10);
}
}
}
else if(bossNum == 3)
{
if(timer == 10)
{
STAGE.newMessage(400,75,"Thats not right at all...now you\'ve gotta start all over again.",15,30,240,"Sound_NiallWrong","NIALL");